﻿using Simple.Common.Helpers;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Simple.Services.System.QHSEViolationCategory.Models;

/// <summary>
/// 学生
/// </summary>
public class QHSEDangerClauseAssocitionModel : ModelBase
{

    [MaxLength(32)]
    public string Id { get; set; }

    [MaxLength(32)]
    public string? ClauseId { get; set; }

    [MaxLength(32)]
    public string? ClauseTypeCode { get; set; }
    [MaxLength(32)]
    public string? DangerCategoryCode { get; set; }
    [MaxLength(32)]
    public string? HSECode { get; set; }
    [MaxLength(32)]
    public string DangerTypeCode { get; set; }

    public override void ConfigureMapper(Profile profile)
    {
        profile.CreateMap<QHSESysDangerClauseAssocition, QHSEDangerClauseAssocitionModel>()
            .ForMember(d => d.Id, options => options.MapFrom(s => s.Id));

        profile.CreateMap<QHSEDangerClauseAssocitionModel, QHSESysDangerClauseAssocition>()
            .ForMember(d => d.Id, options => options.MapFrom(s => s.Id));
    }
}

